package com.mxpio.erp.common.hr.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.mxpioframework.security.entity.BaseEntity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@Table(name = "MB_ERP_HR_EMPLOYEE")
@Schema(description="员工信息")
public class Employee extends BaseEntity {

	private static final long serialVersionUID = 1L;

	@Id
	@Column(name = "USERNAME_", length = 64)
	@Schema(description = "系统账号")
	private String username;
	
	@Column(name = "GENDER_", length = 64)
	@Schema(description = "性别")
	private String gender;
	
	@Column(name = "AGE_", length = 64)
	@Schema(description = "年龄")
	private Integer age;
	
	@Column(name = "IDCARD_", length = 64)
	@Schema(description = "身份证")
	private String idcard;
	
	@Column(name = "PHONE_", length = 64)
	@Schema(description = "手机号")
	private String phone;
}
